home *** CD-ROM | disk | FTP | other *** search
- Path: cs.mu.OZ.AU!bounce-back
- From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
- Newsgroups: comp.std.c++
- Subject: Re: new T[0] and sizeof(T)
- Date: 03 Feb 96 14:46:13 GMT
- Organization: Comp Sci, University of Melbourne
- Approved: fjh@cs.mu.oz.au
- Message-ID: <4evjke$87h@mulga.cs.mu.OZ.AU>
- References: <1996Feb1.091641.4676@iiasa.ac.at> <4erovm$4hh@engnews1.Eng.Sun.COM>
- NNTP-Posting-Host: munta.cs.mu.oz.au
- X-Original-Date: 3 Feb 1996 12:15:10 GMT
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMRN1QOEDnX0m9pzZAQFhqgF/UDbi+EELX0PUIvUqTebjKPXv5+yY+GfQ
- qyJWtBMev/rKvejU3fR05MPWlcDNGt46
- =Uazw
- Originator: fjh@munta.cs.mu.OZ.AU
-
- clamage@Eng.Sun.COM (Steve Clamage) writes:
-
- >The expression "new T[0]" is invalid, but if you
- >use a non-const expression for the count, it is OK if the value is zero.
-
- What makes you think that the expression `new T[0]' is invalid?
- As I read the working paper, it seems perfectly legal, and the
- three compilers I tried it on were all quite happy to accept it.
-
- --
- Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh
- fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-